const db = require('../common/mongoose'),
  mongoose = db.mongoose,
  Schema = db.Schema;

let categorySchema = new Schema({
  // 分类名称
  cateName: {type: String, },
  // 分类别名
  alias: {type: String, },
  // 图标地址
  img: {type: String, },
  // 链接地址
  link: {type: String, },
  // 是否是私密的
  isSecret: {type: Boolean, default:false},
  // 创建时间
  createTime: {type: Date, default: Date.now},
  // 修改时间
  updateTime: {type: Date, default: Date.now},
  // 删除时间
  deleteTime: {type: Date, },
  // 操作人
  operator: {type: String, },
  // 操作人id
  operatorId: {type: String, },
  // 备注
  remarks: {type: String, }
});

let CategoryModel = mongoose.model('Category', categorySchema, 'category');

module.exports = CategoryModel;